* {
    margin: 0;
    padding: 0;
}
.w {
    width: 1200px;
    margin: auto;
}
body {
    background-color: #f3f5f7;
}
li {
    list-style: none;
}
a {
    text-decoration: none;
}
.header {
    height: 42px;
    /* 此地方会覆盖w的margin */
    margin: 30px auto;
}
.logo {
    float: left;
    width: 198px;
    height: 42px;
}
.nav {
    float: left;
    margin-left: 60px;
}
.nav ul li {
    float: left;
    margin: 0 15px;
}
.nav ul li a {
    display: block;
    height: 42px;
    padding: 0 10px;
    line-height: 42px;
    font-size: 18px;
    color: #050505;
}
.nav ul li a:hover {
    color: #00a4ff;
    border-bottom: 3px solid #00a4ff;
}
.search {
    float: left;
    width: 412px;
    height: 42px;
    margin-left: 50px;
}
/* 搜索模块 */
.search input {
    float: left;
    width: 345px;
    height: 40px;
    border: 1px solid #00a4ff;
    border-right: 0;
    color: #bfbfbf;
    font-size: 14px;
    padding-left: 15px;
}
.search button {
    float: left;
    width: 50px;
    height: 42px;
    background:url(images/search.jpg);
    border: 0;

}
/* 用户模块 */
.user {
    float: right;
    margin-right: 32px;
    color: #666;
    font-size: 14px;
    line-height: 42px;
}
/* benner广告部份 */
.banner {
    height: 421px;
    background-color: #1c036c;
}
.banner .w {
    height: 421px;
    background: url(images/banner2.jpg);
}
/* 侧边栏 */
.subnav {
    float: left;
    width: 190px;
    height: 421px;
    background: rgba(0,0,0,.3);
}
.subnav ul li {
    height: 45px;
    line-height: 45px;
    padding: 0 20px;
}
.subnav ul li a {
    font-size: 14px;
    color: #fff;
}
.subnav ul li a span {
    float: right;
}
.subnav ul li a:hover {
    color: #00a4ff;
}
/* 课程表 */
.course {
    float: right;
    width: 230px;
    height: 100px;
    /* 浮动的盒子不会有外边距合并的问题 */
    margin-top: 50px;
}
.course h2 {
    height: 48px;
    background-color: #9bceea;
    text-align: center;
    line-height: 48px;
    font-size: 18px;
}
.bd {
    padding: 0 20px;
    height: 250px;
    background-color: #ffffff;
}
.bd ul li {
    padding: 14px 0;
    border-bottom: 1px solid #ccc;
}
.bd ul li h4 {
    font-size: 16px;
    color: #4e4e4e;
}
.bd ul li p {
    font-size: 12px;
    color: #a5a5;
}
.bd .more {
    display: block;
    height: 38px;
    border: 1px solid #00a4ff;
    text-align: center;
    line-height: 38px;
    font-size: 16px;
    font-weight: 700;
    color: #00a4ff;
    margin-top: 5px;
}
/* 精品推荐部份 */
.goods {
    height: 60px;
    margin-top: 7px;
    background-color: #ffffff;
    line-height: 60px;
    box-shadow: 0 2px 3px 3px rgba(0,0,0,.1);
}
.goods h3 {
    float: left;
    padding: 0 35px;
    color: #00a4ff;
}
.goods ul {
    float: left;
    margin-left: 30px;
}
.goods ul li {
    float: left;
}
.goods ul li a {
    padding: 0 30px;
    font-size: 16px;
    color: #050505;
    border-left: 1px solid #bfbfbf;
}
.goods ul li a:hover {
    color: #00a4ff;
}
.goods .mod a {
    float: right;
    color: #00a4ff;
    font-size: 14px;
    padding-right: 27px;
}
/* box核心内容其余 */
.box {
    height: 600px;
    margin-top: 35px;
}
.box .box-hd {
    height: 40px;
}
.box .box-hd h3 {
    float: left;
    text-align: left;
    font-size: 20px;
    color: #494949;
    font-weight: 400;
}
.box .box-hd a {
    float: right;
    line-height: 40px;
    color: #a5a5a5;
    font-size: 12px;
}
.box .box-hd a:hover {
    color: #00a4ff;
}
/* 图片链接 */
.box-bd {
    height: 554px;
}
.line li {
    position: relative;
    float: left;
    width: 228px;
    height: 271px;
    background-color: #ffffff;
    margin-right: 15px;
    margin-bottom: 12px;
}
.line .last {
    margin-right: 0;
}
.line li a h3 {
    font-weight: 400;
    font-size: 14px;
    color: #050505;
    padding: 25px 25px 15px;
}
.line li em {
    position: absolute;
    top: 4px;
    right: -4px;
}
.down {
    padding: 0 25px;
}
.down .left {
    font-size: 12px;
    color: #ff7c2d;
    margin-right: 10px;
}
.dowm em {
    font-size: 12px;
    color: #999999;
}
.down .right {
    font-size: 12px;
    color: #999999;
    margin-left: 10px;
}
/* 编程入门部分 */
.box2 {
    height: 436px;
    margin-top: 40px;
}
.box2 .box2-hd {
    height: 45px;
}
.box2 .box2-hd h3 {
    float: left;
    height: 45px;
    line-height: normal;
    font-size: 20px;
    color: #494949;
    font-weight: 400;
}
.box2 .box2-hd ul {
    float: left;
    margin-left: 353px;
}
.box2 .box2-hd ul li {
    float: left;
    margin-right: 70px;
}
.box2 .box2-hd ul li a {
    display: block;
    height: 45px;
    line-height: normal;
    color: #868686;
    font-size: 16px;
}
.box2 .box2-hd ul li a:hover {
    color: #00a4ff;
}
.box2 .box2-hd a {
    float: right;
    height: 45px;
    line-height: normal;
    color: #a5a5a5;
    font-size: 12px;
}
.box2 .box2-hd a:hover {
    color: #00a4ff;
}
/* 图片链接 */
.box2 .box2-bd {
    height: 395px;
}
/* 左边的图片 */
.box2 .box2-bd .box2-left {
    float: left;
    width: 215px;
    height: 395px;
    padding-right: 14px;
    background-color: #fff;
    background: url(images/椭圆6拷贝16.jpg);
}
.box2 .box2-bd .box2-left h3 {
    display: block;
    margin-top: 48px;
    margin-left: 37px;
    line-height: 40px;
    color: #ffffff;
    font-size: 18px;
}
.box2 .box2-bd .box2-left .box2-s {
    margin-top: 21px;
    margin-left: 51px;
}
.box2 .box2-bd .box2-left .box2-s p {
    display: block;
    margin-bottom: 54px;
    color: #ffffff;
    font-size: 14px;
    font-weight: bold;
}

.box2 .box2-bd ul {
    float: right;
    width: 957px;
    height: 395px;
}
.box2 .box2-bd ul li {
    float: left;
    height: 271px;
    width: 228px;
    margin-right: 15px;
    background-color: #ffffff;
}
.box2 .box2-bd ul .head {
    height: 100px;
    width: 957px;
    margin-bottom: 24px;
}
.box2 .box2-bd ul .box2-last {
    margin-right: 0;
}
/* 尾部制作 */
.footer {
    height: 420px;
    margin-top: 41px;
    background-color: #ffffff;
}
.footer .w .footer-left {
    float: left;
    margin-top: 37px;
    margin-left: 20px;;
}
.logo2 {
    width: 198px;
    height: 42px;
    margin-bottom: 24px;
}
.introduce {
    margin-bottom: 19px;
    font-size: 12px;
    font-family: SimSun;
    color: #666666;
}
.download {
    width: 65px;
    height: 26px;
    padding: 11px 27px;
    border: 1px #00a4ff solid;
}
.download a {
    font-size: 16px;
    color: #00a4ff;
    line-height: 26px;
}
.footer-right {
    float: right;
    margin-top: 37px;
    margin-right: 33px;
}
.right-box {
    float: right;
    margin-left: 156px;
    background-color: #fff;
}
.last-box {
    margin-left: 0;
}
.right-box ul li h3 {
    display: block;
    margin-bottom: 16px;
    color: #333333;
    font-size: 16px;
}
.right-box ul li a {
    display: block;
    margin-bottom: 9px;
    color: #333333;
    font-size: 12px;
}